import request from '@/utils/request'

// 查询OA报销申请主列表
export function listReimbursement_apply(query) {
  return request({
    url: '/oa/reimbursement_apply/list',
    method: 'get',
    params: query
  })
}

// 查询OA报销申请主详细
export function getReimbursement_apply(id) {
  return request({
    url: '/oa/reimbursement_apply/' + id,
    method: 'get'
  })
}

// 新增OA报销申请主
export function addReimbursement_apply(data) {
  return request({
    url: '/oa/reimbursement_apply',
    method: 'post',
    data: data
  })
}

// 修改OA报销申请主
export function updateReimbursement_apply(data) {
  return request({
    url: '/oa/reimbursement_apply',
    method: 'put',
    data: data
  })
}

// 删除OA报销申请主
export function delReimbursement_apply(id) {
  return request({
    url: '/oa/reimbursement_apply/' + id,
    method: 'delete'
  })
}

// 发送邮件
export function sendEmail(data) {
  return request({
    url: '/oa/reimbursement_apply/sendEmail',
    method: 'post',
    data: data
  })
}

// 查询：我需要审批的请假列表
export function listApproval() {
  return request({
    url: '/oa/reimbursement_apply/approval/list',
    method: 'get'
  })
}

// 查询：抄送给我的请假列表
export function listCopied() {
  return request({
    url: '/oa/reimbursement_apply/copied/list',
    method: 'get'
  })
}
